home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / etc / dhcp3 / dhclient-enter-hooks.d / debug < prev    next >
Text File  |  2009-10-08  |  1KB  |  29 lines

  1. # $Id: debug-enter,v 1.2 2003/06/18 18:11:21 peloy Exp $
  2. #
  3. # The purpose of this script is just to show the variables that are
  4. # available to all the scripts in this directory. All these scripts
  5. # are called from /etc/dhcp3/dhclient-script, which exports all the
  6. # variables shown before. If you want to debug a problem with your DHCP
  7. # setup you can enable this script and take a look at
  8. # /tmp/dhclient-script.debug.
  9.  
  10. # To enable this script set the following variable to "yes"
  11. RUN="no"
  12.  
  13. if [ "$RUN" = "yes" ]; then
  14.     echo `date`: entering dhclient-enter-hooks.d, dumping variables. \
  15.         >> /tmp/dhclient-script.debug
  16.  
  17.     for i in reason interface medium alias_ip_address new_ip_address \
  18.         new_subnet_mask new_domain_name new_domain_search \
  19.         new_domain_name_servers \
  20.         new_routers new_static_routes old_ip_address old_subnet_mask \
  21.         old_domain_name old_domain_search old_domain_name_servers \
  22.         old_routers old_static_routes; do
  23.  
  24.         echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
  25.     done
  26.  
  27.     echo '--------------------------' >> /tmp/dhclient-script.debug
  28. fi
  29.